﻿using UnityEngine;

namespace Core.Setting
{
    /// <summary>
    /// 多语言
    /// </summary>
    public class LanguageSetting : AbstractSettingItem
    {
        public SystemLanguage Curr { get; private set; }

        public override void Awake()
        {
            Curr = Application.systemLanguage;
        }

        public void Set(SystemLanguage lang)
        {
            Curr = lang;
            Value = (int)lang;
        }

        public override void Refresh()
        {
        }

        public override string ToString()
        {
            return Curr.ToString();
        }
    }
}
